<%@ include file="/taglibs.jsp"%>

<head>
    <title><fmt:message key="fileCodeForm.title"/></title>
    <%-- Calendar Setup - put in decorator if needed in multiple pages --%>
</head>

<p></p>
<s:form name="fileCodeForm" action="saveFileStatus" method="post" validate="true">
<s:hidden name="fileStatusId" value="%{entity.id}"/>
<tr>
	<td>
		<s:text name="fileStatus.status"></s:text>
        <span class="required">*</span>:
    </td>
    <td>
    	<s:textfield maxlength="30" name="fileStatusName" required="true" theme="simple" size="40"/>
    </td>
</tr>

<tr>
    <td colspan="2">
    	<button type="submit" class="button" name="save" onclick="this.blur()" >
			<fmt:message key="button.save.title"></fmt:message>
			<img src="${ctx}/images/btn_save.png" align="left" height="20" width="20">
		</button>
	    <c:if test="${not empty entity.id}">
	    	<button type="submit" class="button" name="delete" onclick="return confirm('<fmt:message key="message.delete.confirm"></fmt:message>')">
				<fmt:message key="button.delete.title"></fmt:message>
				<img src="${ctx}/images/btn_delete.png" align="left" height="20" width="20">
			</button>
    	</c:if>
        <button type="submit" class="button" name="cancel" onclick="form.onsubmit=null"">
			<fmt:message key="button.cancel.title"></fmt:message>
			<img src="${ctx}/images/btn_cancel.png" align="left" height="20" width="20">
		</button>
    </td>
</tr>

</s:form>
